﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProductType_ZTEManage.aspx.cs" Inherits="ProductManage_RFProductManage_Manage_ProductType_ZTEManage"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <div>
            <br />
            产品类型列表：
        </div>
        <div style="text-align: center;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3"
                DataKeyNames="ProductTypeID" GridLines="None"
                BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1"
                AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20"
                OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound"
                OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating"
                Width="100%" OnRowCommand="GridView1_RowCommand">
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <Columns>
                    <asp:TemplateField HeaderText="产品类型">
                        <EditItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Itemcode" HeaderText="物料代码" />
                    <asp:BoundField DataField="ModuleType" HeaderText="双工器名称" />
                    <asp:BoundField DataField="Vender" HeaderText="供应商代码" />
                    <asp:BoundField DataField="Remark1" HeaderText="备注1" />
                    <asp:BoundField DataField="Remark2" HeaderText="备注2" />
                    <asp:BoundField DataField="Remark3" HeaderText="备注3" />
                    <asp:CommandField HeaderText="更改" ShowEditButton="True" />
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                    <asp:ButtonField CommandName="Insert" HeaderText="新增" Text="新增" />
                </Columns>
                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                <EmptyDataTemplate>
                    <asp:DetailsView ID="DetailsView1" runat="server" BackColor="White" BorderColor="White"
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"
                        Height="50px" AutoGenerateInsertButton="True" AutoGenerateRows="False" DefaultMode="Insert"
                        OnItemInserting="DetailsView1_ItemInserting" OnModeChanging="DetailsView1_ModeChanging">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <Fields>
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                            <asp:BoundField DataField="Itemcode" HeaderText="物料代码" />
                            <asp:BoundField DataField="ModuleType" HeaderText="双工器名称" />
                            <asp:BoundField DataField="Vender" HeaderText="供应商代码" />
                            <asp:BoundField DataField="Remark1" HeaderText="备注1" />
                            <asp:BoundField DataField="Remark2" HeaderText="备注2" />
                            <asp:BoundField DataField="Remark3" HeaderText="备注3" />
                        </Fields>
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    </asp:DetailsView>
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            </asp:GridView>
            <br />
            <br />
            <br />
        </div>
        <br />
        <br />
    </div>
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>
